<template>
    <div class="search-container">
        <div class="button" @click="handleClick">+</div>
        <div class="input">
            <el-input class="elInput" v-model="input" placeholder="请输入关键字" />
        </div>
    </div>
</template>

<script lang="ts" setup>
import { ref } from 'vue'
const input = ref('')
const emits = defineEmits(['openDialog']);
const handleClick = () =>{
    emits('openDialog')
}
</script>

<style lang="scss" scoped>
.search-container{
    height:60px;
    background:#d3d3d3;
    display:flex;
    align-items:center;
    justify-content: center;
    padding-left: 10px;
    .button{
        width: 40px;
        height: 40px;
        background-color: #1e90ff;
        padding-left: 0;
        border-radius: 5px;
        font-size: 30px;
        font-weight: bold;
        color: #fff;
        text-align: center;
        cursor: pointer;
    }
    .input{
        flex: 1;
        height: 36px;
        padding: 0 10px;
        border: 1px solid #ccc;
        border-radius: 5px;
        .elInput{
            height: 100%;
            width: 100%;
            border: 1px solid #ccc;
            border-radius: 5px;
            padding: 0 10px;
        }
    }
}
</style>